##################################################################
# File : /lua/sessioninit.lua
# Description : This is the user-side session specific top-level lua initialization
# 				file.  It is loaded into a fresh lua state when a new session is
# 				initialized.
# Author : GPG
##################################################################

function IsSim()
    return false
end

function IsUser()
    return true
end

function IsFrontEnd()
    return false
end

function IsRuleInit()
    return false
end

function IsEditor()
    return false
end

# Do global init
doscript '/lua/userInit.lua'

# Add UI-only mods to the list of mods to use
for i,m in ipairs(import('/lua/Mods.lua').GetUiMods()) do
    table.insert(__active_mods, m)
end

LOG('Active mods in session: ',repr(__active_mods))

doscript '/lua/UserSync.lua'

# ConExecute("ren_SkyDome true")
# ConExecute("ren_PlayableBoundary false")
# ConExecute("ren_ShadowLOD 500")